wayland: Fix the popover race workaround
authorMatthias Clasen <mclasen@redhat.com>
Wed, 12 Jun 2019 19:07:29 +0000 (19:07 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 13 Jun 2019 01:50:16 +0000 (21:50 -0400)
commited9b874d2e4593ef326d648e37400fd64f710d11
tree7eeccebf2a39be73c006e06b772ec4aa52e6b5cb
parentc16f10abea9e7fe649b8bd3d7e9eb2b4c0daa7ea
wayland: Fix the popover race workaround

The Wayland backend has a hack to work around
a race with popover mapping: If the surface size
changes before the initial configure, we hide and
show the surface. Unfortunately, the code was doing
this in a way that is externally observable (by
listening for surface state changes), and popovers
were observing it and hiding themselves in response.

Avoid this by not going through the GDK frontend
code for this.
gdk/wayland/gdksurface-wayland.c